<link rel="stylesheet" href="./demo.css">
<div class="box enlarge1">
    <!-- 图片 -->
    <div class="img">
        <div class="mask"></div>
    </div>
    <!-- 放大镜 -->
    <div class="enlarge"></div>
</div>
<div class="box enlarge2">
    <!-- 图片 -->
    <div class="img">
        <div class="mask"></div>
    </div>
    <!-- 放大镜 -->
    <div class="enlarge"></div>
</div>


<script type="module">
    import Enlarge from './demo.js'
    const enlarge1 = new Enlarge('.enlarge1')
    const enlarge2 = new Enlarge('.enlarge2')
</script>
